from iot.models import Warn
from dvadmin.utils.serializers import CustomModelSerializer
from dvadmin.utils.viewset import CustomModelViewSet


class WarnModelSerializer(CustomModelSerializer):
    class Meta:
        model = Warn
        fields = '__all__'


class WarnModelViewSet(CustomModelViewSet):
    queryset = Warn.objects.all()
    serializer_class = WarnModelSerializer
